package loader.builders 
{
	import loader.controllers.LoaderController;
	import loader.facades.LoaderFacade;
	import loader.ILoader;
	import loader.ILoaderBuilder;
	import loader.ILoaderController;
	import loader.ILoaderModel;
	import loader.ILoaderView;
	import loader.models.LoaderModel;
	import loader.views.LoaderTraceView;
	
	/**
	 * ...
	 * @author Luke Van In
	 */
	public class SimpleLoaderBuilder implements ILoaderBuilder 
	{
		
		public function SimpleLoaderBuilder() 
		{
			
		}
		
		
		public function buildLoader():ILoader 
		{
			var model:ILoaderModel = new LoaderModel();
			
			var view:ILoaderView = new LoaderTraceView(model);
			
			var controller:ILoaderController = new LoaderController(model);
			
			var loader:ILoader = new LoaderFacade(model, view, controller);
			
			return loader;
		}
		
	}

}